﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using DTOTemplatedGenerator.ViewModels;

namespace DTOTemplatedGenerator
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App() {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
        }

        void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            MessageBox.Show(e.ExceptionObject.ToString());
        }

		private void Application_Startup(object sender, StartupEventArgs e)
		{
			MainWindow window = new MainWindow();
			ViewModel vm = new ViewModel(new Utils.UserInteract());
			window.DataContext = vm;
			window.Show();
		}
    }
}
